package thread.test_1;

public class Test extends Thread {
    private static int i;
    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            System.out.println("小黑子" + i);
            Test.i++;
            System.out.println(Test.i);
        }
    }
    public static void main(String[] args) {
        Test t1 = new Test();
        Test t2 = new Test();
        t1.start();
        t2.start();
    }
}
